package com.wl.mybootwork4.services.impl;

import com.wl.mybootwork4.entity.Emp;
import com.wl.mybootwork4.services.EmpService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author wl
 * @version 1.0
 * @date 2022/6/13
 * @description:
 */
@Service
public class EmpServiceImpl implements EmpService {


    @Override
    public int updateEmp() {
        return 1;
    }

    @Override
    public int delEmp(Integer eno) {

        return 1;
    }

    @Override
    public int addEmp(Emp emp) {
        return 1;
    }

    @Override
    public List<Emp> getAll() {
        List<Emp> empList=new ArrayList<>();
        for (int i = 0; i < 50; i++) {
            empList.add(new Emp(i+1, "张"+i,i%2==0?"男":"女",56*i+i-20,"123",new Date(i*10000000), 10+i));
        }
        return empList;
    }
}
